package io.renren.modules.biz.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.biz.dao.PhoneCodeDao;
import io.renren.modules.biz.entity.PhoneCodeEntity;
import io.renren.modules.biz.service.PhoneCodeService;


@Service("phoneCodeService")
public class PhoneCodeServiceImpl extends ServiceImpl<PhoneCodeDao, PhoneCodeEntity> implements PhoneCodeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<PhoneCodeEntity> page = this.selectPage(
                new Query<PhoneCodeEntity>(params).getPage(),
                new EntityWrapper<PhoneCodeEntity>()
        );

        return new PageUtils(page);
    }

}
